import Layout from '@/layout'
import SettingEnv from '@/setting.env'

const ord = 'order_'

export default {
  path: `${SettingEnv.customRouter}/order`,
  name: 'order',
  component: Layout,
  redirect: `${SettingEnv.customRouter}/order/list`,
  meta: {
    title: '订单',
    icon: 'el-icon-shopping-cart-full'
  },
  children: [
    {
      path: 'list',
      name: `${ord}list`,
      meta: {
        title: '订单管理'
      },
      component: () => import('@/views/order/orderList')
    },
    {
      path: 'refund',
      name: `${ord}refund`,
      meta: {
        title: '售后订单'
      },
      component: () => import('@/views/order/sales')
    }
  ]
}
